.class Lcom/netease/newsreader/activity/ShareToMicroBlog$5;
.super Ljava/lang/Object;
.source "ShareToMicroBlog.java"

# interfaces
.implements Landroid/text/TextWatcher;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/ShareToMicroBlog;->setListener()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private length:I

.field private temp:Ljava/lang/CharSequence;

.field final synthetic this$0:Lcom/netease/newsreader/activity/ShareToMicroBlog;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ShareToMicroBlog;)V
    .locals 1
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->this$0:Lcom/netease/newsreader/activity/ShareToMicroBlog;

    .line 500
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 502
    const/4 v0, 0x0

    iput v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->length:I

    return-void
.end method


# virtual methods
.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 0
    .parameter "arg0"

    .prologue
    .line 508
    return-void
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0
    .parameter "arg0"
    .parameter "arg1"
    .parameter "arg2"
    .parameter "arg3"

    .prologue
    .line 514
    iput-object p1, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->temp:Ljava/lang/CharSequence;

    .line 515
    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 2
    .parameter "arg0"
    .parameter "arg1"
    .parameter "arg2"
    .parameter "arg3"

    .prologue
    .line 522
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->this$0:Lcom/netease/newsreader/activity/ShareToMicroBlog;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShareToMicroBlog;->access$4(Lcom/netease/newsreader/activity/ShareToMicroBlog;)I

    move-result v0

    if-nez v0, :cond_0

    .line 523
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->this$0:Lcom/netease/newsreader/activity/ShareToMicroBlog;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShareToMicroBlog;->access$5(Lcom/netease/newsreader/activity/ShareToMicroBlog;)I

    move-result v0

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->temp:Ljava/lang/CharSequence;

    invoke-interface {v1}, Ljava/lang/CharSequence;->length()I

    move-result v1

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->length:I

    .line 527
    :goto_0
    iget v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->length:I

    if-gez v0, :cond_1

    .line 528
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->this$0:Lcom/netease/newsreader/activity/ShareToMicroBlog;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShareToMicroBlog;->access$18(Lcom/netease/newsreader/activity/ShareToMicroBlog;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "\u5df2\u8d85\u51fa"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 529
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->this$0:Lcom/netease/newsreader/activity/ShareToMicroBlog;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShareToMicroBlog;->access$19(Lcom/netease/newsreader/activity/ShareToMicroBlog;)Landroid/widget/TextView;

    move-result-object v0

    iget v1, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->length:I

    mul-int/lit8 v1, v1, -0x1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 535
    :goto_1
    return-void

    .line 525
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->this$0:Lcom/netease/newsreader/activity/ShareToMicroBlog;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShareToMicroBlog;->access$6(Lcom/netease/newsreader/activity/ShareToMicroBlog;)I

    move-result v0

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->temp:Ljava/lang/CharSequence;

    invoke-interface {v1}, Ljava/lang/CharSequence;->length()I

    move-result v1

    sub-int/2addr v0, v1

    iput v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->length:I

    goto :goto_0

    .line 531
    :cond_1
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->this$0:Lcom/netease/newsreader/activity/ShareToMicroBlog;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShareToMicroBlog;->access$18(Lcom/netease/newsreader/activity/ShareToMicroBlog;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "\u8fd8\u53ef\u8f93\u5165"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 532
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->this$0:Lcom/netease/newsreader/activity/ShareToMicroBlog;

    invoke-static {v0}, Lcom/netease/newsreader/activity/ShareToMicroBlog;->access$19(Lcom/netease/newsreader/activity/ShareToMicroBlog;)Landroid/widget/TextView;

    move-result-object v0

    iget v1, p0, Lcom/netease/newsreader/activity/ShareToMicroBlog$5;->length:I

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method
